package cn.project.lemontree.dao;

import cn.project.lemontree.bean.Diary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DiaryDao extends BaseMapper<Diary> {
    List<Diary> listpage(int page,int size,String theme);
    int count(String theme);
    int save(Diary diary);

    int update(Diary diary);
    List<Diary> newListpage(@Param("page") int page,@Param("size") int size,@Param("theme") String theme,@Param("parentId") Integer parentId);
    int newCount(@Param("theme") String theme,@Param("parentId") Integer parentId);
}
